<?php namespace Summer\Hjd\Updates;

use Schema;
use Winter\Storm\Database\Updates\Migration;

class BuilderTableCreateSummerHjdWdRule extends Migration
{
    public function up()
    {
        Schema::create('summer_hjd_wd_rule', function($table)
        {
            $table->engine = 'InnoDB';
            $table->increments('id')->unsigned();
            $table->timestamp('created_at')->nullable();
            $table->timestamp('updated_at')->nullable();
            $table->string('currency_slug');
            $table->string('wd_min')->nullable();
            $table->string('wd_max')->nullable();
            $table->string('wd_mul')->nullable();
            $table->string('wd_fee')->nullable();
            $table->string('wd_days')->nullable();
            $table->string('wd_weeks')->nullable();
            $table->string('wd_start')->nullable();
            $table->string('wd_end')->nullable();
            $table->text('wd_text')->nullable();
            $table->integer('status')->nullable()->default(1);
        });
    }
    
    public function down()
    {
        Schema::dropIfExists('summer_hjd_wd_rule');
    }
}
